package com.pengcheng.taskapplication.util;

import com.pengcheng.taskapplication.model.DeviceStatusModel;

public class CheckDeviceStatusUtil {
    public static  String checkDeviceStatus(DeviceStatusModel deviceStatusModel){
        if(deviceStatusModel.washdone.equals("1")){
            return "done";
        }else if (deviceStatusModel.washing.equals("1")){
            return "washing";
        }else if(deviceStatusModel.carready.equals("1")){
            return "carready";
        }else{
           return  "free";
        }
    }
}
